package org.lq.shopping.entity;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class ShopGoods implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private int goods_id;//商品编号
	private String goods_name;//商品名称
	private int goods_price;//商品价格
	private int goodstype_id;//关联商品类型
	private List<String> goods_imgList;//商品图片
	private String goods_desc;//商品描述
	private int goods_exchange;//商品积分兑换0不可兑换1可兑换
	private int goods_integral;//商品积分
	private Map<String,Object> goods_detailMap;//商品详细信息(json字符串)
	private String goods_introduction;//商品介绍
	private String goods_brand;//商品品牌
	
	private String goods_img;//转换成字符串
	private String goods_detail;//转换成字符串
	
	public ShopGoods() {
		super();
	}
	public int getGoods_id() {
		return goods_id;
	}
	public void setGoods_id(int goods_id) {
		this.goods_id = goods_id;
	}
	public String getGoods_name() {
		return goods_name;
	}
	public void setGoods_name(String goods_name) {
		this.goods_name = goods_name;
	}
	public int getGoods_price() {
		return goods_price;
	}
	public void setGoods_price(int goods_price) {
		this.goods_price = goods_price;
	}
	public int getGoodstype_id() {
		return goodstype_id;
	}
	public void setGoodstype_id(int goodstype_id) {
		this.goodstype_id = goodstype_id;
	}
	public String getGoods_desc() {
		return goods_desc;
	}
	public void setGoods_desc(String goods_desc) {
		this.goods_desc = goods_desc;
	}
	public int getGoods_exchange() {
		return goods_exchange;
	}
	public void setGoods_exchange(int goods_exchange) {
		this.goods_exchange = goods_exchange;
	}
	public int getGoods_integral() {
		return goods_integral;
	}
	public void setGoods_integral(int goods_integral) {
		this.goods_integral = goods_integral;
	}
	public String getGoods_introduction() {
		return goods_introduction;
	}
	public void setGoods_introduction(String goods_introduction) {
		this.goods_introduction = goods_introduction;
	}
	
	public String getGoods_brand() {
		return goods_brand;
	}
	public void setGoods_brand(String goods_brand) {
		this.goods_brand = goods_brand;
	}
	public List<String> getGoods_imgList() {
		return goods_imgList;
	}
	public void setGoods_imgList(List<String> goods_imgList) {
		this.goods_imgList = goods_imgList;
	}
	public Map<String, Object> getGoods_detailMap() {
		return goods_detailMap;
	}
	public void setGoods_detailMap(Map<String, Object> goods_detailMap) {
		this.goods_detailMap = goods_detailMap;
	}
	public String getGoods_img() {
		return goods_img;
	}
	public void setGoods_img(String goods_img) {
		this.goods_img = goods_img;
	}
	public String getGoods_detail() {
		return goods_detail;
	}
	public void setGoods_detail(String goods_detail) {
		this.goods_detail = goods_detail;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((goods_brand == null) ? 0 : goods_brand.hashCode());
		result = prime * result + ((goods_desc == null) ? 0 : goods_desc.hashCode());
		result = prime * result + ((goods_detail == null) ? 0 : goods_detail.hashCode());
		result = prime * result + ((goods_detailMap == null) ? 0 : goods_detailMap.hashCode());
		result = prime * result + goods_exchange;
		result = prime * result + goods_id;
		result = prime * result + ((goods_img == null) ? 0 : goods_img.hashCode());
		result = prime * result + ((goods_imgList == null) ? 0 : goods_imgList.hashCode());
		result = prime * result + goods_integral;
		result = prime * result + ((goods_introduction == null) ? 0 : goods_introduction.hashCode());
		result = prime * result + ((goods_name == null) ? 0 : goods_name.hashCode());
		result = prime * result + goods_price;
		result = prime * result + goodstype_id;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ShopGoods other = (ShopGoods) obj;
		if (goods_brand == null) {
			if (other.goods_brand != null)
				return false;
		} else if (!goods_brand.equals(other.goods_brand))
			return false;
		if (goods_desc == null) {
			if (other.goods_desc != null)
				return false;
		} else if (!goods_desc.equals(other.goods_desc))
			return false;
		if (goods_detail == null) {
			if (other.goods_detail != null)
				return false;
		} else if (!goods_detail.equals(other.goods_detail))
			return false;
		if (goods_detailMap == null) {
			if (other.goods_detailMap != null)
				return false;
		} else if (!goods_detailMap.equals(other.goods_detailMap))
			return false;
		if (goods_exchange != other.goods_exchange)
			return false;
		if (goods_id != other.goods_id)
			return false;
		if (goods_img == null) {
			if (other.goods_img != null)
				return false;
		} else if (!goods_img.equals(other.goods_img))
			return false;
		if (goods_imgList == null) {
			if (other.goods_imgList != null)
				return false;
		} else if (!goods_imgList.equals(other.goods_imgList))
			return false;
		if (goods_integral != other.goods_integral)
			return false;
		if (goods_introduction == null) {
			if (other.goods_introduction != null)
				return false;
		} else if (!goods_introduction.equals(other.goods_introduction))
			return false;
		if (goods_name == null) {
			if (other.goods_name != null)
				return false;
		} else if (!goods_name.equals(other.goods_name))
			return false;
		if (goods_price != other.goods_price)
			return false;
		if (goodstype_id != other.goodstype_id)
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "ShopGoods [goods_id=" + goods_id + ", goods_name=" + goods_name + ", goods_price=" + goods_price
				+ ", goodstype_id=" + goodstype_id + ", goods_imgList=" + goods_imgList + ", goods_desc=" + goods_desc
				+ ", goods_exchange=" + goods_exchange + ", goods_integral=" + goods_integral + ", goods_detailMap="
				+ goods_detailMap + ", goods_introduction=" + goods_introduction + ", goods_brand=" + goods_brand
				+ ", goods_img=" + goods_img + ", goods_detail=" + goods_detail + "]";
	}
	
	
	
	
}
